#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <curses.h>
#include <pthread.h>
#include <time.h>
#include "libvid.h"
#include "seek.h"


void			do_seek(double		inc,
				video		*vid)
{
  double		pos;

  pos = (av_gettime() + inc) / 1000000.0; /* get_master_clock(vid) */
  stream_seek(vid, (int64_t) (pos * AV_TIME_BASE), inc);
}
